package com.liuyaong.starter.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HomeController {

    @Value("${server.port}")
    private int port;

    @RequestMapping("/home")
    public Object home() {
        return HomeController.class.getSimpleName() + " :home:" + port;
    }

}
